package com.ktjy.ch05.service.impl;

import com.ktjy.ch05.entity.Employee;
import com.ktjy.ch05.mapper.EmployeeMapper;
import com.ktjy.ch05.service.EmployeeService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @return 13141
 * 2025/7/17
 * 09:37
 */
@Service("employeeService")
public class EmployeeServiceImpl implements EmployeeService {
    @Resource
    private EmployeeMapper employeeMapper;


    @Override
    public List<Employee> findAll() {
        return employeeMapper.selectList(null);
    }

    @Override
    public Employee getById(Long id) {
        return employeeMapper.selectById(id);
    }
}
